* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Poppins", sans-serif;
}

html,
body {
	/* background-color: #000000; */
	display: grid;
	height: 100%;
	place-items: center;
	overflow: hidden;
}

.btn-5 {
  position: relative;
  display: inline-block;
  width: 160px;
  height: 50px;
  /* box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2); */
}

.btn-5 span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #6c4ba5;
  color: #ffaa7f;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 18px;
}

.btn-5 span:nth-child(2) {
  color: #6c4ba5;
  background: #ffaa7f;
  overflow: hidden;
  z-index: 2;
  transition: 0.5s;
  clip-path: polygon(59% 1%, 100% 0%, 100% 100%, 60% 100%, 40% 51%);
}

.btn-5 span:nth-child(2):hover {
  clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 100%, 0 54%);
}

.btn-5 span:nth-child(1):hover ~  span:nth-child(2) {
  clip-path: polygon(100% 0, 100% 0%, 100% 100%, 100% 100%, 100% 52%);
}
